package com.study.model.pojo;

import java.io.Serializable;
import javax.persistence.*;

import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the sale_order database table.
 * 
 */
@Entity
@Table(name="sale_order")
@NamedQuery(name="SaleOrder.findAll", query="SELECT s FROM SaleOrder s")
public class SaleOrder implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="sale_order_id")
	private String saleOrderId;

	private int deptno;

	private int eid;

	@Column(name="pro_id")
	private String proId;

	@Column(name="rec_id")
	private String recId;

	@Column(name="sale_order_total")
	private BigDecimal saleOrderTotal;

	@DateTimeFormat(pattern = "yyyy-MM-dd")  
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="so_data")
	private Date soData;

	@Column(name="so_state")
	private int soState;

	@Column(name="sod_id")
	private String sodId;

	public SaleOrder() {
	}

	public String getSaleOrderId() {
		return this.saleOrderId;
	}

	public void setSaleOrderId(String saleOrderId) {
		this.saleOrderId = saleOrderId;
	}

	public int getDeptno() {
		return this.deptno;
	}

	public void setDeptno(int deptno) {
		this.deptno = deptno;
	}

	public int getEid() {
		return this.eid;
	}

	public void setEid(int eid) {
		this.eid = eid;
	}

	public String getProId() {
		return this.proId;
	}

	public void setProId(String proId) {
		this.proId = proId;
	}

	public String getRecId() {
		return this.recId;
	}

	public void setRecId(String recId) {
		this.recId = recId;
	}

	public BigDecimal getSaleOrderTotal() {
		return this.saleOrderTotal;
	}

	public void setSaleOrderTotal(BigDecimal saleOrderTotal) {
		this.saleOrderTotal = saleOrderTotal;
	}

	public Date getSoData() {
		return this.soData;
	}

	public void setSoData(Date soData) {
		this.soData = soData;
	}

	public int getSoState() {
		return this.soState;
	}

	public void setSoState(int soState) {
		this.soState = soState;
	}

	public String getSodId() {
		return this.sodId;
	}

	public void setSodId(String sodId) {
		this.sodId = sodId;
	}

}